package com.cx.bank.service;

import com.cx.bank.pojo.UserBean;
import com.cx.bank.util.AccountOverDrawnException;
import com.cx.bank.util.InvalidDepositException;


import java.io.IOException;
import java.util.List;

public interface UserService {
    double inquiry(UserBean userBean) ;
    boolean withdrawals(UserBean userBean,int money) throws InvalidDepositException, AccountOverDrawnException, IOException;
    boolean deposit(UserBean userBean, int money) ;
    boolean transfer(UserBean userBean1,String name,double money) ;
    void setState(UserBean userBean);
    List<UserBean> findUsers();
}
